<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>{{ config('app.name', 'Laravel') }}</title>
    <!-- Scripts -->

    <!-- Fonts -->
    <!-- Styles -->
    <link href="{{ asset('static/plugins/layui/css/layui.css') }}" rel="stylesheet">
    <link href="{{ asset('static/css/home/base.css') }}?v=1" rel="stylesheet">
</head>
<body>
<div id="app">
    <nav class="header">
        <div class="layui-main">
            <div class="logo">

            </div>
            <ul class="nav">
                <li class="active">
                    <a href="{{url('')}}">首页<!-- <span class="layui-badge-dot"></span> --></a>
                </li>
                <li>
                    <a href="{{url('/list')}}">职位<!--  --></a>
                </li>
                <li>
                    <a href="{{url('/member')}}">我的<!--  --></a>
                </li>
            </ul>
            <div class="handle">
                @guest
                    <a class="recruit" href="{{url('login')}}">登录</a>
                    <a class="apply" href="{{url('register')}}">注册</a>
                @else
                    <a class="apply" href="{{url('register')}}">{{ Auth::user()->nickname }}</a>
                    <a class="dropdown-item" href="{{ route('logout') }}"
                       onclick="event.preventDefault();document.getElementById('logout-form').submit();">
                        {{ __('退出') }}
                    </a>

                    <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                        @csrf
                    </form>
                @endguest
            </div>
        </div>
    </nav>
    {{--<nav class="navbar navbar-expand-md navbar-light navbar-laravel">--}}

    {{--</nav>--}}

    <main class="py-4">
        @yield('content')
    </main>
</div>
</body>
</html>
